val math = sc.textFile("file:///C:/Users/A/Desktop/student/result_math.txt") val m_math = math.map{x=> val line=x.split(" ");(line(0),line(1),line(2).toInt)}

val bigdata = sc.textFile("file:///C:/Users/A/Desktop/student/result_bigdata.txt") val m_bigdata = bigdata.map{x=>val line=x.split(" ");(line(0),line(1),line(2).toInt)}

val student_100 = m_math.filter(_.3 == 100).union(m_bigdata.filter(._3 == 100))

val result = student_100.map(_._1).distinct val resultArray = result.collect